package de.rubaff.reqiengi.dummy;

import java.util.Date;

import de.rubaff.reqiengi.database.DatabaseManager;
import de.rubaff.reqiengi.objects.Project;
import de.rubaff.reqiengi.objects.Requirement;
import de.rubaff.reqiengi.objects.User;

public class Dummy
{
	public static void CreateDummyProject()
	{
		DatabaseManager manager = new DatabaseManager();
		
		User benni = new User();
		User dennis = new User();
		
		benni.setName("Benni");
		dennis.setName("Benni");
		
		benni.setSkills("Webdesign");
		dennis.setSkills("Backend");
		
		Project pro = new Project("Bennis Project",benni,new Date());
		pro.addUser(dennis);
		
		Requirement r1 = new Requirement();
		Requirement r2 = new Requirement();
		
		r1.setName("R1");
		r2.setName("R2");
		
		pro.addRequirement(r1);
		pro.addRequirement(r2);
		
		manager.openDatabase(DatabaseManager.DB);
		manager.store(pro);
		manager.closeDatabase();
		
	}
}
